package middleware

import (
	"github.com/gin-contrib/sessions"
	"github.com/gin-contrib/sessions/memstore"
	"github.com/gin-gonic/gin"
)

func Session() gin.HandlerFunc {
	store := memstore.NewStore([]byte("secret"))
	return sessions.Sessions("mysession", store)
}
